const { override, fixBabelImports, addWebpackAlias } = require('customize-cra');
const path = require('path');

module.exports = override(
    fixBabelImports('import', {
        libraryName: 'antd-mobile',
        style: 'css'
    }),
    addWebpackAlias({
        'pages': path.join(__dirname, './src/pages'),
        'components': path.join(__dirname, './src/components'),
        'assets': path.join(__dirname, './src/assets'),
        'lib': path.join(__dirname, './src/lib'),
        'store': path.join(__dirname, './src/store'),
        'utils': path.join(__dirname, './src/utils'),
    })
)